package com.sz.jinzheng.controller;

import com.sz.jinzheng.model.BorrowerInfo;
import com.sz.jinzheng.model.Result;
import com.sz.jinzheng.service.BorrowerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inspector")
public class BorrowerInfoController {
    @Autowired
    private BorrowerInfoService borrowerInfoService;

    @RequestMapping("/getBorrowerInfoBykey")
    public Result getBorrowerInfoBykey(int id) {
        BorrowerInfo info = borrowerInfoService.getBorrowerInfoBykey(id);
        return new Result(200, "成功", info);
    }
}
